import request from '@/utils/request'

/**
 * 获取楼宇列表
 */
export function getBuildingListAPI(params) {
    return request({
        url: '/park/building',
        params
    })
}

/**
 * 添加楼宇
 */
export function createBuildingListAPI(data) {
    return request({
        url:'/park/building',
        method:'post',
        data
    })
}

/**
 * 删除楼宇
 */
export function delBuildingListAPI(id) {
    return request({
        url: `/park/building/${id}`,
        method: 'delete',
    })

}

/**
 * 获取楼宇详情
 */
export function editBuildingAPI(data) {
    return request({
        url: '/park/building',
        method: 'put',
        data
    })
}